Skip to content

Rewrite build script to use convention plugins#5416

Draft
modmuss50 wants to merge 23 commits into
FabricMC:26.2from
modmuss50:build-script-rewrite
Draft

Rewrite build script to use convention plugins#5416
modmuss50 wants to merge 23 commits into
FabricMC:26.2from
modmuss50:build-script-rewrite

Conversation

@modmuss50
Copy link
Copy Markdown
Member

@modmuss50 modmuss50 commented Jun 5, 2026

Gradle has deprecated parent project method lookup for removal in Gradle 10. This is something that we were depending on for our project setup. This PR basically rewrites the whole build script to use convention plugins instead.

With this PR I have also enabled configuration cache, and moved the run configs over to using the Gradle tasks using the recent loom changes I have made.

This is not a perfect idomatic Gradle build script, I would love to enable features such as configure on demand and/or project isolation but thats a nightmare as far as I can tell. Please do suggest improvements where they are feasible. Where possible this should mirror the old build script as closly as possible.

Note: I have used AI tools to help with this, mostly for the large tedious refactors but this is certinally not vibe ported.

TODO

  • Test beyond basic builds
  • Focus script
  • Publish to a local maven
  • Fix loom run config deprecations
  • Wait for stable loom 1.17
  • Update MPP to 2.0.0
  • further cleanup
  • move to build-logic

Future ideas

  • Generate/validate the fabric.mod.json files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant